<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="fa fa-area-chart"></i>
                                        <strong class="font-bold">管理中心</strong>
                                    </span>
                                </span>
                    </a>
                </div>
                <div class="logo-element">hAdmin
                </div>
            </li>
            <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                <span class="ng-scope">分类</span>
            </li>
            <li>
                <a class="J_menuItem" href="${pageContext.request.contextPath}/manager/index.do">
                    <i class="fa fa-home"></i>
                    <span class="nav-label">主页</span>
                </a>
            </li>
            <li>
                <a class="J_menuItem" href="${pageContext.request.contextPath}/manager/apiList.do">
                    <i class="fa fa-magic"></i> <span class="nav-label">我的账户</span>
                </a>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa fa-bar-chart-o"></i>
                    <span class="nav-label">接口列表</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level collapse in" aria-expanded="true">
                    <c:forEach items="${apiList.data}" var="api">
                        <li>
                            <a class="J_menuItem" href="${pageContext.request.contextPath}/aboutApi.do?apiId=${api.id}">${api.name}</a>
                        </li>
                    </c:forEach>
                </ul>
            </li>
            <c:if test="${user.type==2}">
                <li>
                    <a href="#">
                        <i class="fa fa fa-bar-chart-o"></i>
                        <span class="nav-label">用户管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level collapse in" aria-expanded="true">
                        </li>
                        <li><a class="J_menuItem" href="${pageContext.request.contextPath}/userList.do">用户列表</a>
                        </li>
                        <li><a class="J_menuItem" href="${pageContext.request.contextPath}/payList.do">充值记录</a>
                        </li>
                    </ul>
                </li>
            </c:if>
            <li>
                <a href="mailbox.jsp"><i class="fa fa-envelope"></i> <span class="nav-label">财务信息 </span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level collapse in" aria-expanded="true">
                    </li>
                    <li><a class="J_menuItem" href="${pageContext.request.contextPath}/costList.do?userId=${user.id}">消费记录</a>
                    </li>
                    <li><a class="J_menuItem" href="${pageContext.request.contextPath}/payList.do?userId=${user.id}">充值记录</a>
                    </li>
                </ul>
            </li>

        </ul>
    </div>
</nav>